const Koa = require('koa');
const app = new Koa();


app.use(async (ctx, next) => {

  // ctx.request.querystring
  // const { querystring, search, host, hostname, type } = ctx.request;
  // const { query } = ctx;
  // ctx.type = 'application/json;charset=utf-8'
  ctx.body = `<h1>hello world</h1>`
})


app.listen(8000, () => {
  console.log('server port is 8000')
})